package com.blb.community_admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.community_admin.entity.ZyCommunityInteraction;
import com.blb.community_admin.mapper.ZyCommunityInteractionMapper;
import com.blb.community_admin.service.IZyCommunityInteractionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ZyCommunityInteractionServiceImpl extends ServiceImpl<ZyCommunityInteractionMapper, ZyCommunityInteraction> implements IZyCommunityInteractionService {
    @Resource
    private ZyCommunityInteractionMapper zyCommunityInteractionMapper;


    @Override
    public IPage<ZyCommunityInteraction> fuzzyPage(long size, long current, String ownerNickname, String ownerRealName) {
        return zyCommunityInteractionMapper.fuzzyPage(new Page<ZyCommunityInteraction>(size,current),ownerNickname,ownerRealName);
    }
}
